package com.weasel.weixin.commons.session.mgt;

import com.weasel.weixin.commons.session.WeixinSession;

/**
 * Created by Dylan on 2015/12/7.
 */
public interface WeixinSessionManager {

    /**
     * @param sessionid
     * @return
     */
    WeixinSession getSession(String sessionid);


    /**
     * @param sessionid
     * @param create
     * @return
     */
    WeixinSession getSession(String sessionid,boolean create);

    /**
     * @param sessionid
     * @return
     */
    WeixinSession start(String sessionid);

    /**
     * @param sessionid
     */
    void stop(String sessionid);
}
